﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ShivamEMR.Model.Domain.PersonDomain;
using ShivamEMR.Model.Domain;
using System.ComponentModel.DataAnnotations;

namespace ShivamEMR.Model.Domain.CRMDomain
{
  public  class InteractionGroup
    {
        #region Properties
        public int ID { get; set; }
        public string Code { get; set; }
        public string Group { get; set; }
        public string Description { get; set; }
        public string Notes { get; set; } 
        #endregion

        #region ForeignKeyProperties
        public int ParentID { get; set; }
        #endregion

        #region NavigationalProperties
        [ForeignKey("ParentID")]
        public virtual InteractionGroup Parent { get; set; }
        public virtual ICollection<InteractionGroup> Children { get; set; }
        public virtual ICollection<Interaction> Interactions { get; set; } 
        #endregion


    }
}
